<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
</head>
<body>
	<br />
	<a target="blank" href="public/cache/loadAECShopConfig">设置缓存：AEC配置</a>
	<br />
	<br />
	<a target="blank" href="public/cache/loadSystemConfig">设置缓存：系统配置</a>
	<br />
	<br />
		<a target="blank" href="public/cache/loadAllProduct">重新加载所有渠道的产品</a>
	<br />
	<br />
		<a target="blank" href="public/cache/rationListreload">清除配售缓存产品</a>
	<br />	
	<br />
	 定时任务：
	<form action="system/timerTask/updateTask" method="post">
		oldTask(可选填 空表示添加):
	<input type="text" value="" list="timerTask" width="50%" name="oldTask" autocomplete="off" onblur="document.getElementById('newTask').value=this.value"/>  
		<br> 说明（定时任务是使用linux的cron命令）： 20 8 * * * cur	 url >/home/weblogic/cron/logid2019229.html <br> 每隔20分钟执行 ：*/20 * * *
		* <br> 每小时的第30分执行： 30 * * * * <br> 每天的8点执行： 0 8 * * * <br>
		每周的星期一8点执行： 0 8 * * 1 <br> 每月1号8点执行： 0 8 1 * * <br> 
		newTask(可选填 空表示删除):
		<input type="text" value="" list="timerTask" width="2500px" name="newTask" autocomplete="off" id="newTask"/>  
		<br> <input type="submit" value="提交">
	</form>
	<datalist id="timerTask">
	
	</datalist>
	<br />
	测试精彩活动<form method="post" name="form1" id="form1" action="">
	     <input type="hidden" name="param" id="param" value=""/>
	    ada:  <input type="text" name="ada" id="ada" value="16808"/>
     redirectTo: <input type="text" name="redirectTo" id="redirectTo" value="3"/>
            <input type="button" id="button" value="提交" />
</form><br/>
<!-- 
java:
<form method="post" name="form1" id="form1" action="http://ampluscloudservice-qa.chinacloudapp.cn/sso/login">
	     <input type="hidden" name="param" id="param" 
	     value="BE695422387291CF71E6668FCAFCFA67967BE49D5FCC629A0F83530D6DBA05172CFEE8D43AA597E13D37B21206318289CBF4CA8CCD3A1C2C1E89907184CAFE67012E6AA3AA91993195DFB2C57B4460D62CB7E001C3959EDC5B637B38575B8F6E5EC379B1C3F424F6A0781E6879CA3105"/>
	    ada:  <input type="text" name="ada" id="ada" value="16808"/>
     redirectTo: <input type="text" name="redirectTo" id="redirectTo" value="3"/>
            <input type="submit" id="button1" value="提交" />
</form>


IBM:
<form method="post" name="form1" id="form1" action="http://ampluscloudservice-qa.chinacloudapp.cn/sso/login">
	     <input type="hidden" name="param" id="param" 
	     value="9E53B73D56D70062A7023401EA9223468CDC0F9CA6C9C089DF0D7B575BC890E45F45CE02E4071EC19C15FF154384EB358A7EB0E4F82CB26448C106AC3DAD08B98E51B801EDE19C17CC25865A4F3A612CAEAACEA237708A43690493A6CC929470886D650032BE5204F96915B2720C9FD7"/>
	    ada:  <input type="text" name="ada" id="ada" value="16808"/>
     redirectTo: <input type="text" name="redirectTo" id="redirectTo" value="3"/>
            <input type="submit" id="button1" value="提交" />
</form> -->
	<script type="text/javascript">
	String.prototype.replaceAll = function(s1, s2) {      
	    return this.replace(new RegExp(s1, "gm"), s2); //g全局     
	}   
	  $.getJSON("system/timerTask/getAllCronTask?",function(result){
		    $.each(result, function(i, field){
		      if(field.indexOf('wechatorderingservice')>-1){
		      $("#timerTask").append("<option value='"+field+"'>"+field.replaceAll(" ","&nbsp;")+"</option>");
		     }
		    });
	     });
	     
	    
	    $("#button").click(function(){
	   
	     var para='{"bizParam":"{\\\"ada\\\":'+$("#ada").val()+'}","channel":"HUB"};'
	     var url="amplus/getAmplusToken";
		     $.ajax({
	             type: "post",
	             url: "http://120.24.234.122:8199/HandlerEorder.ashx",
	             data:{para: para, service:url},
	             success: function(result){
	                  
	                      console.debug("result:"+result);
	                   var amplusToken=result.result.amplusToken;
				      var sso_url=result.result.sso_url;
				      
				       $("#param").val(amplusToken);
				       $("#form1").attr("action",sso_url);
				        $("#form1").submit();
				      }
	         });
         });

	</script>
	
	
</body>
</html>